/**
 * @type {module:http}
 */
const http = require('http');
const server = http.createServer();

server.on('request', (req,res)=>{
    // request 本质是 net.socket + http 协议 增加的一些内容
    // request.socket => net.socket
    console.log('remoteAddressr', req.socket.remoteAddress)

})

server.listen(8123, '0.0.0.0')